﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true"
    CodeBehind="Gathering.aspx.cs" Inherits="WXYW.Gathering" UICulture="zh-CHS" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<asp:Content ID="content2" ContentPlaceHolderID="TitlePlaceHolder" runat="server">
    财务收款确认
</asp:Content>
<asp:Content ID="Content1" ContentPlaceHolderID="RightContentPlaceHolder" runat="server">
    <div class="buttonHeader" align="right">
        <img src="image/operateicon/back_back.gif" alt="" />
        <asp:LinkButton ID="backLinkButton" runat="server" OnClick="backLinkButton_Click"> 返回 </asp:LinkButton>
        &nbsp;&nbsp;<img src="image/operateicon/check.gif" alt="" />
        <asp:LinkButton ID="submitLinkButton" runat="server" OnClick="submitLinkButton_Click"> 提交 </asp:LinkButton>
        &nbsp;&nbsp;</div>
    <table width="100%" cellspacing="0" border="1px" style="border-collapse: collapse">
        <tr style="height: 25px">
            <td style="width: 10%">
                RMA #
            </td>
            <td style="width: 40%">
                <asp:Label ID="rmaCodeLabel" runat="server" Text=""></asp:Label>
            </td>
            <td style="width: 10%">
                应付货款
            </td>
            <td style="width: 40%">
                ￥<asp:Label ID="shouldPayLabel" runat="server" Text=""></asp:Label>元
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                公司/个人名称
            </td>
            <td>
                <asp:Label ID="companyNameLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                实付货款
            </td>
            <td>
                ￥<asp:TextBox ID="realPayTextBox" runat="server"></asp:TextBox>元
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                公司/个人地址
            </td>
            <td>
                <asp:Label ID="companyAddressLbl" runat="server" Text=""></asp:Label>
            </td>
            <td>
                未收款原因
            </td>
            <td>
                <asp:DropDownList ID="notReceiveMoneyReasonDDL" runat="server">
                    <asp:ListItem Text="正常收费" Value="正常收费" Selected="True"></asp:ListItem>
                    <asp:ListItem Text="特服" Value="特服"></asp:ListItem>
                    <asp:ListItem Text="保外备案" Value="保外备案"></asp:ListItem>
                    <asp:ListItem Text="保修凭证"></asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系人
            </td>
            <td>
                <asp:Label ID="connectPersonLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                收款日期
            </td>
            <td>
                <asp:TextBox ID="dateTextBox" runat="server" Text=""></asp:TextBox>
                <cc1:CalendarExtender ID="CalendarExtender1" runat="server" Format="yyyy-MM-dd" TargetControlID="dateTextBox">
                </cc1:CalendarExtender>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                联系电话
            </td>
            <td>
                <asp:Label ID="phoneNumberLabel" runat="server" Text=""></asp:Label>
            </td>
            <td>
                收款人
            </td>
            <td>
                <asp:TextBox ID="receiverTextBox" runat="server"></asp:TextBox>
            </td>
        </tr>
        <tr style="height: 25px">
            <td>
                备注
            </td>
            <td colspan="3">
                <asp:TextBox ID="remarkTextBox" runat="server" Width="90%"></asp:TextBox>
            </td>
        </tr>
        <tr style="height: 10px">
            <td colspan="4">
            </td>
        </tr>
        <tr>
            <td colspan="4">
                <asp:GridView ID="ProductGridView" runat="server" Width="100%" CssClass="tableList"
                    AutoGenerateColumns="False" OnRowDataBound="ProductGridView_RowDataBound1" 
                    EnableModelValidation="True">
                    <Columns>
                        <asp:TemplateField HeaderImageUrl="~/image/operateicon/button_Select.gif">
                            <ItemTemplate>
                                <asp:Label ID="IDLbl" runat="server"></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" />
                            <ItemStyle Wrap="False" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="型号" DataField="ProductType">
                            <HeaderStyle Wrap="False" />
                        <ItemStyle Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="序列号" DataField="ProductSerialNumber">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="版本号" DataField="ProductVersionNumber">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="维修零件">
                            <ItemTemplate>
                                <asp:Label ID="TextBox4" runat="server" Text='<%# Bind("RepairAccessory") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="收费原因" DataField="PayReason">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="维修价格" DataField="Cost" DataFormatString="￥{0}元">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False"  />
                        </asp:BoundField>
                        <asp:BoundField HeaderText="保内/外" DataField="ProductRepairType">
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Center" Wrap="False" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="工程师">
                            <ItemTemplate>
                                <%#Eval("Engineer")%>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" Wrap="False" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="备注">
                            <ItemTemplate>
                                <asp:Label ID="TextBox5" runat="server" Text='<%# Bind("Remark") %>'></asp:Label>
                            </ItemTemplate>
                            <HeaderStyle Wrap="False" />
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </td>
        </tr>
    </table>
    <table width="100%">
        <tr style="height: 25px;" align="center">
            <td style="border-bottom-style: solid; border-bottom-width: 1px;">
                <img src="image/ico_album.gif" alt="" style="float: left" /><b>图片预览区</b>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Panel ID="picturePanel" runat="server">
                </asp:Panel>
            </td>
        </tr>
        <tr style="height: 25px;" align="center">
            <td style="border-bottom-style: solid; border-bottom-width: 1px;">
                <img src="image/ico_photo.gif" alt="" style="float: left" /><b>上传图片区</b>
            </td>
        </tr>
        <tr align="center">
            <td>
                <asp:FileUpload ID="fileUploadPicture" runat="server" />
                <asp:Button ID="uploadButton" runat="server" Text="上传" OnClick="uploadButton_Click"
                    Width="80px" />
            </td>
        </tr>
    </table>
</asp:Content>
